package com.gitee.wsl.compose.mvi.merge

import androidx.compose.material3.RadioButtonColors
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.Color

class RadioButtonColorsMerger : ComponentMerger<RadioButtonColors> {
    override val default: RadioButtonColors = Default

    companion object {
        @Stable
        val Default =  RadioButtonColors(
            selectedColor=Color.Unspecified,
            unselectedColor=Color.Unspecified,
            disabledSelectedColor=Color.Unspecified,
            disabledUnselectedColor=Color.Unspecified,
        )
    }
}

fun RadioButtonColors.copy(other:RadioButtonColors)=copy(
    selectedColor=other.selectedColor,
    unselectedColor=other.unselectedColor,
    disabledSelectedColor=other.disabledSelectedColor,
    disabledUnselectedColor=other.disabledUnselectedColor,
)